package org.as.sdg.objs;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

@SuppressWarnings("serial")
public class Node implements Serializable {

    protected List<Node> node;
    protected String id;
    protected String label;
    protected boolean leaf;
    protected boolean link;
    protected boolean expanded;

    public List<Node> getNode() {
        if (node == null) {
            node = new ArrayList<Node>();
        }
        return this.node;
    }
    
    public void setNode(List<Node> node){
    	this.node = node;
    }

    public String getId() {
        return id;
    }

    public void setId(String value) {
        this.id = value;
    }

    public String getLabel() {
        return label;
    }

    public void setLabel(String value) {
        this.label = value;
    }

    public boolean isLeaf() {
        return leaf;
    }

    public void setLeaf(boolean value) {
        this.leaf = value;
    }

    public boolean isLink() {
        return link;
    }

    public void setLink(boolean value) {
        this.link = value;
    }

    public boolean isExpanded() {
        return expanded;
    }

    public void setExpanded(boolean value) {
        this.expanded = value;
    }
}
